<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"E:\php\WWW\qings\public/../application/index\view\index\queryListBaidu.html";i:1491290697;s:65:"E:\php\WWW\qings\public/../application/index\view\index\base.html";i:1491291800;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>清水书架</title>
    <link href="__PUBLIC__bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.static.runoob.com/libs/jquery/2.0.0/jquery.min.js"></script>
    <script src="__PUBLIC__bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <nav class="navbar navbar-default navbar-static-top" role="navigation">
        <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="<?php echo url('index/index/index'); ?>">清水书架</a>
        </div>
        <div>
            <ul class="nav navbar-nav">
                <li><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                <li><a href="#">登陆</a></li>
                <li><a href="#">注册</a></li>
            </ul>
        </div>
        <div>
            <form class="navbar-form navbar-right" role="search" method="post" action="<?php echo url('index/index/queryListQidian'); ?>">
                <div class="form-group">
                    <input type="text" name="book" class="form-control" placeholder="请输入书名">
                    <input type="submit" class="btn btn-primary" value="提交">
                </div>
            </form>
        </div>
        </div>
    </nav>
    
<div class="container">

    <table class="table table-bordered">
        <caption>百度搜索结果</caption>
        <thead>
        <tr>
            <th>书名</th>
            <th>链接</th>
        </tr>
        </thead>
        <tbody>
            <?php foreach($data as $value): ?>
            <tr>
                <td><a href="<?php echo $value['link']; ?>" target="_blank"><?php echo $value['name']; ?></a></td>
                <td><a href="<?php echo $value['link']; ?>" target="_blank"><?php echo $value['link']; ?></a></td>
            </tr>
            <?php endforeach; ?>
        </tbody>
    </table>

</div>

</div>
</body>
</html>